﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Eje4_page1 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void btnValidate_Click(object sender, EventArgs e)
    {
        string param = string.Empty;
        param = "?usr=" + txtUser.Text;
        bool valid = false;
        valid = (txtPass.Text == "Casas" && txtUser.Text.Trim().ToUpper() == "CLAUDIO");
        if (valid) Response.Redirect("page_auth.aspx" + param);
        else Response.Redirect("page_unauth.aspx");
    }
}